package com.bawei.module_home.mvp;

import android.util.Log;
import android.widget.ImageView;

import com.bawei.library_base.utils.GlideUtil;
import com.bawei.module_home.R;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;

import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import java.util.List;

/**
 * @author : zhiyu
 * @date : 2021/12/11
 * @content :
 */
public class GoodAdapter extends BaseQuickAdapter<Goods.DataBean, BaseViewHolder> {
    public GoodAdapter(int layoutResId, @Nullable List<Goods.DataBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(@NotNull BaseViewHolder baseViewHolder, Goods.DataBean dataBean) {
        Log.i("imageview", "convert: "+dataBean.getPictUrl());
        GlideUtil.getInstance().LoadFilleted(getContext(),
                dataBean.getPictUrl(),
                (ImageView) baseViewHolder.getView(R.id.mTopicIv),
                true,false,false,false,
                10
        );

    }
}
